package com.mszlu.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mszlu.blog.dao.pojo.Tag;

import java.util.List;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/3/21 1:14 PM
 */
public interface TagMapper extends BaseMapper<Tag> { /** >>> TagMapper.xml */
    List<Tag> getTagsByArticleId(Long articleId);

    /**
     * 查询前limit条最热标签
     * @param limit
     * @return
     */
    List<Long> getHotsTagIds(int limit);

    List<Tag> getTagsByTagIds(List<Long> tagIds);

}
